home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2001 Haziran / CHIP Haziran2001.iso / prog / haziran / 20 / setup.exe / {app} / plugins / XQ Startmenu Options.xpl < prev    next >
Encoding:
XSetup plugin  |  2001-03-28  |  2.0 KB  |  70 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Appearance\Start menu\Options"
  5. "NAME"="Display Options"
  6. "VERSION"="1.18"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Show context menu for "Start" button,Taskbar and Tray"
  9. "TEXT 2"="Show context menu (right-click) in Start->Programs"
  10. "TEXT 3"="Show Start->Programs using multiple columns" 
  11. "DESCRIPTION 1"="If an item is disabled (not checked), Windows will either not display it or does not allow that changes are made."
  12. "DESCRIPTION 2"="NOTE: If you disable the context menu for Start->Programs, you will also disable the ability to use drag & drop to move the items inside Programs."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Setting #3 from Tom Simpson [thomas@mail.xenafan.com] - thanks a lot!"
  18. "COMMENT 3"="Thanks to Ken [k-o@cyberdude.dk] for the "no drag&drop" notice"
  19.  
  20.  
  21.   sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  22.  sV1="NoTrayContextMenu"
  23.  sV2="NoChangeStartMenu"
  24. sPV3="HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuScrollPrograms" 'STR: false/true
  25. SUB Plugin_Initialize
  26.  
  27.  i=RegReadValue(sp&sV1) 
  28.  If IsEmpty(i) or i=0 then SetUIElement 1,true
  29.  
  30.  i=RegReadValue(sp&sV2) 
  31.  if IsEmpty(i) or i=0 then SetUIElement 2,true 
  32.  
  33.  i=RegReadValue(sPV3) 
  34.  if i="false" then SetUIElement 3,true 
  35.  
  36. END SUB
  37.  
  38. SUB Plugin_CheckData(ElementIndex)
  39. END SUB
  40.  
  41. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  
  43.  b=GetUIElement(1)
  44.  if b=true then
  45.     Call RegWriteValue(sp&sV1,0,2)
  46.  else
  47.     Call RegWriteValue(sp&sV1,1,2)
  48.  end if
  49.  
  50.  b=GetUIElement(2)
  51.  if b=true then
  52.     Call RegWriteValue(sp&sV2,0,2)
  53.  else
  54.     Call RegWriteValue(sp&sV2,1,2)
  55.  end if
  56.  
  57.  b=GetUIElement(3)
  58.  if b=true then
  59.     Call RegWriteValue(sPV3,"false",1)
  60.  else
  61.     Call RegWriteValue(sPV3,"true",1)
  62.  end if
  63.  
  64.  
  65.  Call IndicateSettingChange()
  66. END SUB
  67.  
  68. SUB Plugin_Terminate
  69. END SUB
  70.